<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url()?>system/public/css/styles.css" />
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/jquery.ui/jquery.js"></script>
        <script type="text/javascript" >
            $("#search").live('click', function() {
                if (($("#email").val().length == 0) || ($("#phone").val().length == 0)) {
                    $("input:text").each(function(index) {
                        $(this).css('border-color', 'red');
                    });
                    return false;
                }
                
                var parent_form = $("#parent_form").val();
                submit_request(parent_form);
            });
            
            function submit_request(parent_form)
            {
                parent.$("input[id^='email_rent']").val($("#email").val());
                parent.$("input[id^='phone_rent']").val($("#phone").val());                  
                parent.$("#" + parent_form).submit();
                parent.$.fn.colorbox.close();
            }
        </script>
    </head>
    <body>
        <input type="hidden" id="parent_form" value="<?php echo $this->uri->segment(3); ?>" />
        <h1 class="blue">
            To submit your request and receive a quotation please provide your:
        </h1>
        <p>&nbsp;</p>
        <table style="text-align: center; width: 100%;">
            <tbody>
                <tr style="text-align: left;">
                    <td>&nbsp;&nbsp;Email address:</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;&nbsp;Phone contact:</td>
                </tr>
                <tr>
                    <td>
                        <input type="text" name="email" id="email" value="" />
                    </td>
                    <td></td>
                    <td>
                        <input type="text" name="phone" id="phone" value="" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="text-align: right;">
                        <input type="submit" value="Submit" class="search" id="search" />&nbsp;&nbsp;
                    </td>
                </tr>
            </tbody>
        </table>        
    </body>
</html>  